package com.taobao.api.response;

import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: tmall.nr.fulfill.logistics.query response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class TmallNrFulfillLogisticsQueryResponse extends TaobaoResponse {

	private static final long serialVersionUID = 6326622744561246655L;

	/** 
	 * 返回对象
	 */
	@ApiField("result")
	private NrResult result;


	public void setResult(NrResult result) {
		this.result = result;
	}
	public NrResult getResult( ) {
		return this.result;
	}
	
	/**
 * 当前状态
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrDeliveryBriefStatusDto extends TaobaoObject {

	private static final long serialVersionUID = 4123266954595375613L;

	/**
		 * 快递员姓名
		 */
		@ApiField("deliverer_name")
		private String delivererName;
		/**
		 * 快递员电话
		 */
		@ApiField("deliverer_phone")
		private String delivererPhone;
		/**
		 * 取件失败的code
		 */
		@ApiField("fail_code")
		private String failCode;
		/**
		 * 取件失败的原因
		 */
		@ApiField("fail_reason")
		private String failReason;
		/**
		 * 包含[CREATE,GRASP,GOT,DELIVERYED]
		 */
		@ApiField("logistics_status")
		private String logisticsStatus;
		/**
		 * logisticsStatusName状态的说明包含[下单,接单,取件,妥投,拒收，取消]
		 */
		@ApiField("logistics_status_name")
		private String logisticsStatusName;
		/**
		 * 状态产生时间
		 */
		@ApiField("logistics_time")
		private String logisticsTime;
		/**
		 * 服务商的cp
		 */
		@ApiField("sp_name")
		private String spName;
	

	public String getDelivererName() {
			return this.delivererName;
		}
		public void setDelivererName(String delivererName) {
			this.delivererName = delivererName;
		}
		public String getDelivererPhone() {
			return this.delivererPhone;
		}
		public void setDelivererPhone(String delivererPhone) {
			this.delivererPhone = delivererPhone;
		}
		public String getFailCode() {
			return this.failCode;
		}
		public void setFailCode(String failCode) {
			this.failCode = failCode;
		}
		public String getFailReason() {
			return this.failReason;
		}
		public void setFailReason(String failReason) {
			this.failReason = failReason;
		}
		public String getLogisticsStatus() {
			return this.logisticsStatus;
		}
		public void setLogisticsStatus(String logisticsStatus) {
			this.logisticsStatus = logisticsStatus;
		}
		public String getLogisticsStatusName() {
			return this.logisticsStatusName;
		}
		public void setLogisticsStatusName(String logisticsStatusName) {
			this.logisticsStatusName = logisticsStatusName;
		}
		public String getLogisticsTime() {
			return this.logisticsTime;
		}
		public void setLogisticsTime(String logisticsTime) {
			this.logisticsTime = logisticsTime;
		}
		public String getSpName() {
			return this.spName;
		}
		public void setSpName(String spName) {
			this.spName = spName;
		}

}

	/**
 * 返回数据
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrTimingFulfillDetailQueryRespDto extends TaobaoObject {

	private static final long serialVersionUID = 7182491498618163938L;

	/**
		 * 当前状态
		 */
		@ApiField("nr_delivery_brief_status_d_t_o")
		private NrDeliveryBriefStatusDto nrDeliveryBriefStatusDTO;
		/**
		 * 历史状态
		 */
		@ApiListField("nr_delivery_brief_status_d_t_os")
		@ApiField("nr_delivery_brief_status_dto")
		private List<NrDeliveryBriefStatusDto> nrDeliveryBriefStatusDTOs;
	

	public NrDeliveryBriefStatusDto getNrDeliveryBriefStatusDTO() {
			return this.nrDeliveryBriefStatusDTO;
		}
		public void setNrDeliveryBriefStatusDTO(NrDeliveryBriefStatusDto nrDeliveryBriefStatusDTO) {
			this.nrDeliveryBriefStatusDTO = nrDeliveryBriefStatusDTO;
		}
		public List<NrDeliveryBriefStatusDto> getNrDeliveryBriefStatusDTOs() {
			return this.nrDeliveryBriefStatusDTOs;
		}
		public void setNrDeliveryBriefStatusDTOs(List<NrDeliveryBriefStatusDto> nrDeliveryBriefStatusDTOs) {
			this.nrDeliveryBriefStatusDTOs = nrDeliveryBriefStatusDTOs;
		}

}

	/**
 * 返回对象
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrResult extends TaobaoObject {

	private static final long serialVersionUID = 2243854189799668368L;

	/**
		 * errorCode
		 */
		@ApiField("error_code")
		private String errorCode;
		/**
		 * errorMessage
		 */
		@ApiField("error_message")
		private String errorMessage;
		/**
		 * isSuccess
		 */
		@ApiField("is_success")
		private Boolean isSuccess;
		/**
		 * 返回数据
		 */
		@ApiField("result_data")
		private NrTimingFulfillDetailQueryRespDto resultData;
	

	public String getErrorCode() {
			return this.errorCode;
		}
		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}
		public String getErrorMessage() {
			return this.errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public Boolean getIsSuccess() {
			return this.isSuccess;
		}
		public void setIsSuccess(Boolean isSuccess) {
			this.isSuccess = isSuccess;
		}
		public NrTimingFulfillDetailQueryRespDto getResultData() {
			return this.resultData;
		}
		public void setResultData(NrTimingFulfillDetailQueryRespDto resultData) {
			this.resultData = resultData;
		}

}



}
